#ifndef COUNTINGSEMAPHORE_H

#include <semaphore.h>

class CountingSemaphore
{
public:
	CountingSemaphore(unsigned int initCount);
	~CountingSemaphore();
	int wait();
	int signal();

private:
	sem_t _semid;
};

#define COUNTINGSEMAPHORE_H
#endif
